
require('../config/mongodb')()

var download_categoryModel = require('../models/download_categoryModel')

var fs = require('fs')

var str = fs.readFileSync('../db/download_category.json')

var arr = JSON.parse(str)

arr.forEach(element => {
    new download_categoryModel(element).save(function(err,item){

        console.log(item);
    });
});
